<?php

class Of_Amazon_Item
{
  protected $item;
  
  protected $imageFormat = "http://images.amazon.com/images/P/%s.09._AA%s_SCTZZZZZZZ_.jpg";
  
  public function __construct(SimpleXMLElement $item)
  {
    $this->item = $item;
  }
  
  public function __get($name)
  {
    return $this->item->$name;
  }
  
  
}